package hhh.app.presenter.model.productlist;

import java.util.List;
import java.util.Map;

import hhh.app.data.bean.Category;
import hhh.app.data.bean.Product;
import hhh.app.presenter.ui.base.IPresenter;
import hhh.app.presenter.ui.base.IView;

/**
 * Created by hhh on 2016/10/28.
 */
public interface ProductListContract {
    interface IProductListView extends IView {
        void showProducts(List products);

//        void showEmpty();
//        void showLoading();
//        void showError();

//        void initCategories(List<Category> groups,SparseArray<List<Category>> children);
        void initCategories(Map<Integer,List<Category>> mapCaterory);

    }
    interface IProductListPresenter extends IPresenter<IProductListView> {
        void loadProducts(int page,int category,String type,String sort);
        void openProductDetail(Product p);
        void loadCategories();
    }
}
